<common-nav></common-nav>
<div ng-controller="loujiandaishenpiCtrl">
    <div style="display: flex;flex-direction: row;">
        <button ng-click="changeAll(1)" ng-show="all==1">全选</button>
        <button ng-click="changeAll(2)" ng-show="clear==1">清空</button>
        <!--<button  ng-click="changeAll(2)" ng-show="all==2">取消全选</button>-->
    </div>
    <div  ng-repeat="x in data" style="overflow: hidden;border-bottom: 5px solid #dddddd;">
        <div style="width: 100%;display: flex;flex-direction: row;align-items: center"  ng-click="changeState(x);">
            <div class="check" >
                <div ng-if="x.eachFlag==true"><img src="./img/radio_checked.png" alt="" style="width: 30px;height: 30px;"></div>
                <div ng-if="x.eachFlag==false"><img src="./img/radio_unchecked.png" alt="" style="width: 30px;height: 30px;"></div>
            </div>
            <div style="width: 100%;">
                <div style="z-index: 1">
                    <div class="paichaLiGl">
                        <div>项目 :<span ng-bind="x.itemId"></span></div>
                        <div ng-if="x.state =='01'" style="text-align:right;color: red;margin-right: 10px;">待排查</div>
                        <div ng-if="x.state =='02'" style="text-align:right;color: lightgreen;margin-right: 10px;">已排查</div>
                        <div ng-if="x.state =='03'" style="text-align:right;color: red;margin-right: 10px;">漏检(待确认)</div>
                    </div>
                    <div class="paichaLiGl">
                        <div>开始 :<span ng-bind="x.planDt.substr(0,10)"></span></div>
                        <div>结束 :<span ng-bind="x.planEndDt.substr(0,10)"></span></div>
                    </div>
                    <div class="paichaLiGl">
                        <div>周期 :<span ng-bind="x.frequency+'年'"></span></div>
                        <div style="display: inline">存在隐患 :</div>

                    </div>
                </div>
                <div ng-if="x.state=='01'" class="" style="width: 74px;height: 24px;overflow:hidden;display: inline;margin-left:50px;position: relative;top: -33px;left:59%; z-index: 2;float: left;"  >
                    <div class="mui-switch mui-switch-blue mui-active">
                        <!--ng-controller="paichaBtnCtrl"-->
                        <div class="mui-switch-handle"></div>
                    </div>
                    <div class="mui-switch mui-switch-blue">
                        <div class="mui-switch-handle"></div>
                    </div>
                </div>
                <div ng-if="x.state=='02'" class="" style="width: 74px;height: 24px;overflow:hidden;display: inline;margin-left:50px;position: relative;top: -33px;left:59%; z-index: 2;float: left;"  >
                    <div class="mui-switch mui-switch-blue mui-active" >
                        <!--ng-controller="paichaBtnCtrl"-->
                        <div class="mui-switch-handle"></div>
                    </div>
                    <div class="mui-switch mui-switch-blue">
                        <div class="mui-switch-handle"></div>
                    </div>
                </div>
                <div ng-if="x.state=='03'" class="" style="width: 74px;height: 24px;overflow:hidden;display: inline;margin-left:50px;position: relative;top: -33px;left:59%; z-index: 2;float: left;"  >
                    <div class="mui-switch mui-switch-blue mui-active">
                        <!--ng-controller="paichaBtnCtrl"-->
                        <div class="mui-switch-handle"></div>
                    </div>
                    <div class="mui-switch mui-switch-blue">
                        <div class="mui-switch-handle"></div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <div  ng-click="shenqing()" style=" overflow: hidden;line-height: 50px;font-size: 20px;height: 50px;width: 100%;background-color:#314261;text-align: center;position: fixed;bottom: 0;left: 0;">
        <div style="width: 100%;height: 50px;float:left;color: #fff;" class="tijiao" >申请</div>
    </div>
</div>